#pragma once

#include "GLInterface.h"

// Apple Collect Robot
class GLACRobot : public IGLObjBase
{
public:
	GLACRobot(void);
	~GLACRobot(void);

	virtual void SetPosition(int nPositionX=0,int nPositionY=0,int nPositionZ=0);

	virtual int GetPositionX(){return m_vPositions[0];};
	virtual int GetPositionY(){return m_vPositions[1];};
	virtual int GetPositionZ(){return m_vPositions[2];};
	virtual int TimeEscape(double fMillionSecond);

	int MoveAhead(double fStep);
	int MoveBack(double fStep);
	int TurnLeft(double fStep);
	int TurnRight(double fStep);

protected:
	std::list<int> m_lstComponentID;
 	int m_nBodyID;
 	int m_nHeadID;
	int m_nFireBaseID;
	double m_vPositions[3];
	double m_vBodyDirections[3];
	double m_vHeadDirections[3];
};
